import java.sql.*;


public class CriarTabela {

    public static void main (String args[]){

        try{
            Connection c=DBConnection.getConnection();
            Statement st=c.createStatement();
            int r=st.executeUpdate("" +
                    "Create table Livros (" +
                    "Titulo varchar(50)," +
                    "Autor varchar(50)," +
                    "ISBN varchar(30) primary key," +
                    "Numpaginas integer)");
            c.close();
        }catch(SQLException e){
            System.out.println(e);

        }
    }

}
